﻿#ifndef MYOBJECT_H
#define MYOBJECT_H

#if defined(_MSC_VER) && (_MSC_VER >= 1600)
# pragma execution_character_set("utf-8")
#endif

#include <QObject>
#include <QTime>
#include <QDate>
#include <QDateTime>
#include <QTimer>
#include <QMutex>
#include <QDebug>

#include "mylog.h"
#include "tables.h"
#include "config.h"
#include "sqlbase.h"
#include "globaldata.h"


class MyObject : public QObject
{
    Q_OBJECT
public:
    explicit MyObject(QObject *parent = nullptr);

signals:
    void Finished();

public slots:
    virtual void Start();
    virtual void Stop();
    virtual void ReStart();
    virtual void OnTimer();

public:
    GlobalData   *globalData;
    TaskManager  *taskManager;

    QTimer       *timer;
    QMutex       mutex;
};

#endif // MYOBJECT_H
